package com.haiyou.dc.mq.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 商品信息表
 *
 * @author Administrator
 * @date 2020-01-11 22:23:44
 */
@ApiModel(value = "商品信息表")
@Data
@Accessors(chain = true)
@Table(name = "product")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "id", name = "id")
    private Integer id;

    /**
     * 商品编号
     */
    @Column(name = "product_no")
    @ApiModelProperty(value = "商品编号", name = "productNo")
    private String productNo;

    /**
     * 库存量
     */
    @Column(name = "total")
    @ApiModelProperty(value = "库存量", name = "total")
    private Integer total;

    /**
     * create_time
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "create_time", name = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;

}
